package com.project.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.project.bean.ThingBean;

import java.time.LocalDate;

/**
 * @author RJ
 * @date 2022/9/15 9:03
 */
public interface IThingService extends IService<ThingBean> {
    //添加事件
    void addThing(ThingBean thingBean);

    //查看事件信息
    ThingBean getThingInfo(Integer thingId);

    //修改事件信息，根据灾情阶段和防治方案
    void updThing(Integer thingId, String thingStage, String thingScheme);

    //根据事件名称，灾情状态，发生位置，起始和结束日期查询事件，分页显示
    IPage<ThingBean> cutThingByItem(Integer pageNo, Integer pageSize, String thingName, String thingStage,
                                    String areaName, LocalDate startDate, LocalDate endDate);

    //申请专家会审
    void updStage(Integer thingId, String thingStage);
}
